package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 财务子表
 * @TableName yd_account_item
 */
@TableName(value ="yd_account_item")
@Data
public class YdAccountItem implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 表头Id
     */
    @TableField(value = "header_id")
    private Long headerId;

    /**
     * 账户Id
     */
    @TableField(value = "account_id")
    private Long accountId;

    /**
     * 收支项目Id
     */
    @TableField(value = "in_out_item_id")
    private Long inOutItemId;

    /**
     * 单据id
     */
    @TableField(value = "bill_id")
    private Long billId;

    /**
     * 应收欠款
     */
    @TableField(value = "need_debt")
    private BigDecimal needDebt;

    /**
     * 已收欠款
     */
    @TableField(value = "finish_debt")
    private BigDecimal finishDebt;

    /**
     * 单项金额
     */
    @TableField(value = "each_amount")
    private BigDecimal eachAmount;

    /**
     * 单据备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 删除标记，0未删除，1删除
     */
    @TableField(value = "delete_flag")
    private String deleteFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}